﻿using Microsoft.Owin;
using Ninject.Web.WebApi;
using Owin;
using System.Web.Http;
using Service;
using Service.App_Start;

[assembly: OwinStartup(typeof(Startup))]
namespace Service
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            var config = new HttpConfiguration();

            SwaggerConfig.Register();

            var kernel = NinjectWebCommon.GetKernel();
            GlobalConfiguration.Configuration.DependencyResolver = new NinjectDependencyResolver(kernel);

            app.UseWebApi(config);
        }
    }
}